unified_appsec_profile

Configuration for unified_appsec_profile resource.

Read/write properties

profile_name<String>

Profile name.
Maximum length = 128

last_modified<String>

Last Modified time.

id<String>

Id is system generated key for protection.

app_devices<app_devices_info[]>

Mapping ADC IPs to Apps.

is_default<Boolean>

Flag to check Default Application.

parent_template<String>

Template name used to create this profile.

app_protections<protection_info[]>

protection info.

monitor_mode_toggle<Boolean>

Monitor mode toggle.

configpack_id<String>

Stylebook Config Pack ID.
Maximum length = 128

appsec_verbose_log<String>

appsec verbose log.

enable_analytics<Boolean>

Enable Analytics as part of Unified Appsec Config..

no_of_protections<String>

Number of Protections.

release<String>

NS Release.

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

The following parameters can be used in the nitro request :

onerror   <String_value>

Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE

get (all)getupdatedeleteadd

get (all)

URL:https://<MGMT-IP>/nitro/v2/config/unified_appsec_profile

Query-parameters:

filter

https://<MGMT-IP>/nitro/v2/config/unified_appsec_profile?filter=property-name1:property-value1,property-name2:property-value2

Use this query-parameter to get the filtered set of unified_appsec_profile resources configured on the system. You can set a filter on any property of the resource.

pagesize=#no&pageno=#no

https://<MGMT-IP>/nitro/v2/config/unified_appsec_profile?pagesize=#no&pageno=#no

Use this query-parameter to get the unified_appsec_profile resources in chunks.

count

https://<MGMT-IP>/nitro/v2/config/unified_appsec_profile?count=yes

Use this query-parameter to get the count of unified_appsec_profile resources.

HTTPS Method:GET

Request Headers:

Accept:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Headers:

Content-Type:application/json

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "unified_appsec_profile":[{
      "profile_name":<String_value>,
      "last_modified":<String_value>,
      "id":<String_value>,
      "app_devices":[{
      "ctnsappname":<String_value>,
      "session_attribute":<String_value>,
      "id":<String_value>,
      "parent_id":<String_value>,
      "session_track_method":<String_value>,
      "ip_address":<String_value>,
      "ns_ip_address":<String_value>,
      "parent_name":<String_value>}],
      "is_default":<Boolean_value>,
      "parent_template":<String_value>,
      "app_protections":[{
      "protection_name":<String_value>,
      "parent_id":<String_value>,
      "parent_name":<String_value>,
      "type":<String_value>,
      "protection_id":<Integer_value>,
      "id":<String_value>
      "enable_keys":<String_value>
      "config":<String_value>}],
      "monitor_mode_toggle":<Boolean_value>,
      "configpack_id":<String_value>,
      "appsec_verbose_log":<String_value>,
      "enable_analytics":<Boolean_value>,
      "act_id":<String_value>,
      "no_of_protections":<String_value>,
      "release":<String_value>}]}

get

URL:https://<MGMT-IP>/nitro/v2/config/unified_appsec_profile/id_value<String>

HTTPS Method:GET

Request Headers:

Accept:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Headers:

Content-Type:application/json

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "unified_appsec_profile":[{
      "profile_name":<String_value>,
      "last_modified":<String_value>,
      "id":<String_value>,
      "app_devices":[{
      "ctnsappname":<String_value>,
      "session_attribute":<String_value>,
      "id":<String_value>,
      "parent_id":<String_value>,
      "session_track_method":<String_value>,
      "ip_address":<String_value>,
      "ns_ip_address":<String_value>,
      "parent_name":<String_value>}],
      "is_default":<Boolean_value>,
      "parent_template":<String_value>,
      "app_protections":[{
      "protection_name":<String_value>,
      "parent_id":<String_value>,
      "parent_name":<String_value>,
      "type":<String_value>,
      "protection_id":<Integer_value>,
      "id":<String_value>
      "enable_keys":<String_value>
      "config":<String_value>}],
      "monitor_mode_toggle":<Boolean_value>,
      "configpack_id":<String_value>,
      "appsec_verbose_log":<String_value>,
      "enable_analytics":<Boolean_value>,
      "act_id":<String_value>,
      "no_of_protections":<String_value>,
      "release":<String_value>}]}

update

URL:https://<MGMT-IP>/nitro/v2/config/unified_appsec_profile/id_value<String>

HTTPS Method:PUT

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"unified_appsec_profile":{
      "last_modified":<String_value>,
      "is_default":<Boolean_value>,
      "profile_name":<String_value>,
      "app_protections":[{
      "enable_keys":<String_value>,
      "protection_name":<String_value>,
      "type":<String_value>,
      "id":<String_value>,
      "config":<String_value>,
      "parent_name":<String_value>,
      "protection_id":<Integer_value>,
      "parent_id":<String_value>}]
,
      "enable_analytics":<Boolean_value>,
      "no_of_protections":<String_value>,
      "appsec_verbose_log":<String_value>,
      "app_devices":[{
      "session_attribute":<String_value>,
      "parent_id":<String_value>,
      "ip_address":<String_value>,
      "ns_ip_address":<String_value>,
      "ctnsappname":<String_value>,
      "session_track_method":<String_value>,
      "id":<String_value>,
      "parent_name":<String_value>}]
,
      "parent_template":<String_value>,
      "monitor_mode_toggle":<Boolean_value>,
      "configpack_id":<String_value>,
      "id":<String_value>,
      "release":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "unified_appsec_profile":[{
      "profile_name":<String_value>,
      "last_modified":<String_value>,
      "id":<String_value>,
      "app_devices":[{
      "ctnsappname":<String_value>,
      "session_attribute":<String_value>,
      "id":<String_value>,
      "parent_id":<String_value>,
      "session_track_method":<String_value>,
      "ip_address":<String_value>,
      "ns_ip_address":<String_value>,
      "parent_name":<String_value>}],
      "is_default":<Boolean_value>,
      "parent_template":<String_value>,
      "app_protections":[{
      "protection_name":<String_value>,
      "parent_id":<String_value>,
      "parent_name":<String_value>,
      "type":<String_value>,
      "protection_id":<Integer_value>,
      "id":<String_value>
      "enable_keys":<String_value>
      "config":<String_value>}],
      "monitor_mode_toggle":<Boolean_value>,
      "configpack_id":<String_value>,
      "appsec_verbose_log":<String_value>,
      "enable_analytics":<Boolean_value>,
      "act_id":<String_value>,
      "no_of_protections":<String_value>,
      "release":<String_value>}]}

delete

URL:https://<MGMT-IP>/nitro/v2/config/unified_appsec_profile/id_value<String>

HTTPS Method:DELETE

Request Headers:

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value> }

add

URL:https://<MGMT-IP>/nitro/v2/config/unified_appsec_profile?onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"unified_appsec_profile": {
      "is_default":<Boolean_value>,
      "enable_analytics":<Boolean_value>,
      "configpack_id":<String_value>,
      "monitor_mode_toggle":<Boolean_value>,
      "release":<String_value>,
      "id":<String_value>,
      "last_modified":<String_value>,
      "profile_name":<String_value>,
      "no_of_protections":<String_value>,
      "app_protections":[{
      "enable_keys":<String_value>,
      "protection_name":<String_value>,
      "type":<String_value>,
      "id":<String_value>,
      "config":<String_value>,
      "parent_name":<String_value>,
      "protection_id":<Integer_value>,
      "parent_id":<String_value>}]
,
      "parent_template":<String_value>,
      "app_devices":[{
      "session_attribute":<String_value>,
      "parent_id":<String_value>,
      "ip_address":<String_value>,
      "ns_ip_address":<String_value>,
      "ctnsappname":<String_value>,
      "session_track_method":<String_value>,
      "id":<String_value>,
      "parent_name":<String_value>}]
,
      "appsec_verbose_log":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "unified_appsec_profile":[{
      "profile_name":<String_value>,
      "last_modified":<String_value>,
      "id":<String_value>,
      "app_devices":[{
      "ctnsappname":<String_value>,
      "session_attribute":<String_value>,
      "id":<String_value>,
      "parent_id":<String_value>,
      "session_track_method":<String_value>,
      "ip_address":<String_value>,
      "ns_ip_address":<String_value>,
      "parent_name":<String_value>}],
      "is_default":<Boolean_value>,
      "parent_template":<String_value>,
      "app_protections":[{
      "protection_name":<String_value>,
      "parent_id":<String_value>,
      "parent_name":<String_value>,
      "type":<String_value>,
      "protection_id":<Integer_value>,
      "id":<String_value>
      "enable_keys":<String_value>
      "config":<String_value>}],
      "monitor_mode_toggle":<Boolean_value>,
      "configpack_id":<String_value>,
      "appsec_verbose_log":<String_value>,
      "enable_analytics":<Boolean_value>,
      "act_id":<String_value>,
      "no_of_protections":<String_value>,
      "release":<String_value>}]}